<?php

// logout
session_start();
session_destroy();

// forward location
if(isset($_REQUEST['targeturl']))
	$Location = $_REQUEST['targeturl'];
else
	$Location = '/';
header('Location: ' . $Location);

?>